package eu.dominicum.ra.db4o.api;

import java.util.List;

import javax.resource.ResourceException;

import com.db4o.query.Predicate;

public interface IDb4oConnection {

	void close() throws ResourceException;

	void commit();

	/**
	 * Store an object.
	 * 
	 * @param object
	 */
	void store(Object object);

	/**
	 * Execute a native query taking a {@link Predicate} object of any type and
	 * returning a {@link List} object of any type.
	 * 
	 * @param - A {@link Predicate} object defining the native query
	 * @return {@link} {@link List}
	 */
	List<?> executeNativeQuery(Predicate<?> predicate);
}
